package com.java.controller;

import com.java.bean.User;
import com.java.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/test")
public class TestController {
    @Autowired
    private UserService userService;

//    @RequestMapping("/ssm")
//    public String ssm(Model model){
//        List<User> list=userService.findAll();
//        model.addAttribute("key","value");
//        model.addAttribute("userlist",list);
//        return "test";
//    }
}
